home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 21 / CU Amiga Magazine's Super CD-ROM 21 (1998)(EMAP Images)(GB)[!][issue 1998-04].iso / CUCD / Programming / Python-1.4 / Python1.4_Source / Modules / protos / rotormodule_protos.h < prev    next >
Text File  |  1996-12-15  |  2KB  |  28 lines

  1. /* Prototypes for functions defined in Modules/rotormodule.c */
  2.  
  3. static void set_seed(PyRotorObject * );
  4. static double r_random(PyRotorObject * );
  5. static short r_rand(PyRotorObject * , int );
  6. static void set_key(PyRotorObject * , unsigned char * );
  7. static PyRotorObject * PyRotor_New(int , unsigned char * );
  8. static void RTR_make_id_rotor(PyRotorObject * , unsigned char * );
  9. static void RTR_e_rotors(PyRotorObject * );
  10. static void RTR_d_rotors(PyRotorObject * );
  11. static void RTR_positions(PyRotorObject * );
  12. static void RTR_advances(PyRotorObject * );
  13. static void RTR_permute_rotor(PyRotorObject * , unsigned char * , unsigned char * );
  14. static void RTR_init(PyRotorObject * );
  15. static void RTR_advance(PyRotorObject * );
  16. static unsigned char RTR_e_char(PyRotorObject * , unsigned char );
  17. static unsigned char RTR_d_char(PyRotorObject * , unsigned char );
  18. static void RTR_e_region(PyRotorObject * , unsigned char * , int , int );
  19. static void RTR_d_region(PyRotorObject * , unsigned char * , int , int );
  20. static void PyRotor_Dealloc(PyRotorObject * );
  21. static PyObject * PyRotor_Encrypt(PyRotorObject * , PyObject * );
  22. static PyObject * PyRotor_EncryptMore(PyRotorObject * , PyObject * );
  23. static PyObject * PyRotor_Decrypt(PyRotorObject * , PyObject * );
  24. static PyObject * PyRotor_DecryptMore(PyRotorObject * , PyObject * );
  25. static PyObject * PyRotor_SetKey(PyRotorObject * , PyObject * );
  26. static PyObject * PyRotor_GetAttr(PyRotorObject * , unsigned char * );
  27. static PyObject * PyRotor_Rotor(PyObject * , PyObject * );
  28.